keywords: ip pbx voip gateway gsm gateway

×

Notice

The forum is in read only mode.
× Questions about G400/G410 Cards.

Compilation error for chan_extra-2.0.7 with CentOS 6.3

11 years 3 months ago #8523 by Joe.Yung
Hello,

We never compiled Asterisk 1.8.20 on our chan_extra 2.0.7 at present. Because it 's the newest(release on 2013-1-14). We have to build a similar scenario and test it first.

And we will give you a solution here as soon as possible once we get it done.

11 years 3 months ago #8529 by Joe.Yung
Hello,
Please go to your chan_extra source code package and fine chan_extra.c, open it by your editor and insert the following codes to the corresponding lines:

4663
#elif (ASTERISK_VERSION_NUM >= 10820)
ast_devstate_changed_literal(ast_state_chan2dev(state), AST_DEVSTATE_NOT_CACHABLE, tmp->name);

6274
#elif (ASTERISK_VERSION_NUM >= 10820)
ast_devstate_changed_literal(ast_state_chan2dev(state), AST_DEVSTATE_NOT_CACHABLE, chn->name);

11 years 3 months ago #8531 by claudiuc
It compiles fine now. Many thanks for your help!
10 years 7 months ago #9096 by matis969
hi,
i'm new on this forum.
Hi ave the same problem and insert the code on lines +4663 and +6274 dont resolve the problem.
i have asterisk 11.5 and chan_extra 2.0.7 on centos 6.4.

[CC] chan_extra.c -> chan_extra.o
chan_extra.c: In function ‘extra_new’:
chan_extra.c:4663: error: incompatible type for argument 2 of ‘ast_devstate_changed_literal’
/usr/src/asterisk-11.5.1/include/asterisk/devicestate.h:167: note: expected ‘enum ast_devstate_cache’ but argument is of type ‘const char *’
chan_extra.c:4663: error: too few arguments to function ‘ast_devstate_changed_literal’
chan_extra.c: In function ‘sms_send_new’:
chan_extra.c:6272: error: incompatible type for argument 2 of ‘ast_devstate_changed_literal’
/usr/src/asterisk-11.5.1/include/asterisk/devicestate.h:167: note: expected ‘enum ast_devstate_cache’ but argument is of type ‘const char *’
chan_extra.c:6272: error: too few arguments to function ‘ast_devstate_changed_literal’
make[1]: *** [chan_extra.o] Error 1
make: *** [channels] Error 2

do you can help me too?
thanks
maurizio

i] Last edited by matis969 at 2013-9-30 04:49 [/i
10 years 7 months ago #9097 by rick.zhu
Hi,

So sorry for that reply you delay.
Please use the asterisk 1.8 version.Now it can't support asterisk 11.5.

Best regards.
10 years 1 month ago #9602 by Mossea
Hi.
Is there chan_extra support for Asterisk 11.8.1?
My install scripts failure...

Mon Mar 31 17:55:04 EEST 2014 : [ OK ]
chan_extra.c: In function ‘extra_new’:
chan_extra.c:4663: error: incompatible type for argument 2 of ‘ast_devstate_changed_literal’
/usr/src/asterisk-11.8.1/include/asterisk/devicestate.h:167: note: expected ‘enum ast_devstate_cache’ but argument is of type ‘const char *’
chan_extra.c:4663: error: too few arguments to function ‘ast_devstate_changed_literal’
chan_extra.c: In function ‘sms_send_new’:
chan_extra.c:6272: error: incompatible type for argument 2 of ‘ast_devstate_changed_literal’
/usr/src/asterisk-11.8.1/include/asterisk/devicestate.h:167: note: expected ‘enum ast_devstate_cache’ but argument is of type ‘const char *’
chan_extra.c:6272: error: too few arguments to function ‘ast_devstate_changed_literal’
make[1]: *** [chan_extra.o] Error 1
make: *** [channels] Error 2
Time to create page: 0.044 seconds
Powered by Kunena Forum